package com.frogs.ucenter.service.daoimpl;

import java.util.Map;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.framework.util.PageList;
import com.frogs.ucenter.dao.UserIntegralRecordDao;
import com.frogs.ucenter.entity.UserIntegralRecord;
import com.frogs.ucenter.entity.UserIntegralRecordWithUserResult;
import com.frogs.ucenter.service.UserIntegralRecordService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userIntegralRecordService")
public class UserIntegralRecordServiceImpl extends BaseServiceImpl<UserIntegralRecord> implements UserIntegralRecordService {
    @Autowired
    private UserIntegralRecordDao userIntegralRecordDao;

    public UserIntegralRecordServiceImpl() {
        super();
    }

    public UserIntegralRecordDao getUserIntegralRecordDao() {
        return userIntegralRecordDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserIntegralRecord> getBaseDao() {
        return userIntegralRecordDao;
    }

    public void setUserIntegralRecordDao(UserIntegralRecordDao userIntegralRecordDao) {
        this.userIntegralRecordDao = userIntegralRecordDao;
    }

	@Override
	public PageList<UserIntegralRecordWithUserResult> listRecharge(
			Map<String, Object> params, int pageNo, int pageSize) {
		return userIntegralRecordDao.selectUserIntegralList(params, pageNo, pageSize);
	}
}